﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GEA
{
    public partial class frmrptSaldoReferencia : Form
    {
        Mercadoria Merc = new Mercadoria();
        public frmrptSaldoReferencia()
        {
            InitializeComponent();
        }
        public frmrptSaldoReferencia(Mercadoria merc)
        {
            InitializeComponent();
            Merc = merc;
            this.Padding = new System.Windows.Forms.Padding(5, 20, 5, 50);

        }

        private void frmrptSaldoReferencia_Load(object sender, EventArgs e)
        {
            this.GetSaldoReferenciaTableAdapter.Fill(this.geaDataSet.GetSaldoReferencia,Merc.Id_entreposto,Merc.Id_Referencia);

            reportViewer1.LocalReport.DisplayName = "Ref_" + Merc.Id_Referencia;
            this.reportViewer1.RefreshReport();

        }
    }
}
